<extend name="Public/base" />
<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i class="icon-home"></i> 首页</a> 
			<a href="#" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br/>
		<button class="btn btn-info" id="add">新 增</button>
		<button class="confirm btn btn-danger ajax-post" url="{:U('checkShopChangeStatus?method=deleteCheckShop')}" target-form="ids">删 除</button>
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
					<notempty name="_list">
						<form id="export-form" method="post" action="" autocomplete="off">
							<table class="table table-bordered table-striped with-check">
								<thead>
									<tr>
										<th><input type="checkbox" /></th>
										<th nowrap="nowrap">序号</th>
										<th nowrap="nowrap">活动</th>
										<th nowrap="nowrap">商户</th>
										<th nowrap="nowrap">店铺</th>
										<th nowrap="nowrap">状态</th>
										<th nowrap="nowrap">不合格单数</th>
										<th nowrap="nowrap">质检时间</th>
										<th nowrap="nowrap">申请核销时间</th>
										<th nowrap="nowrap">备注</th>
										<th nowrap="nowrap">操作</th>
									</tr>
								</thead>
								<tbody>
									<volist name="_list" id="vo">
										<tr>
											<td class="taskStatus">
												<input type="checkbox" value="{$vo.check_shop_id}" name="id[]" class="ids"/>
											</td>
											<td class="taskStatus" nowrap="nowrap">{$i}</td>
											<td class="taskStatus" nowrap="nowrap">{$vo.activity_id|getActivityName|msubstr=###,0,30}</td>
											<td class="taskStatus" nowrap="nowrap">{$vo.merchant_id|getMerchantName|msubstr=###,0,30}</td>
											<td class="taskStatus" nowrap="nowrap">{$vo.shop_id|getShopName|msubstr=###,0,30}</td>
											<td class="taskStatus" nowrap="nowrap"><eq name="vo.is_pass" value="1">合格<else/>不合格</eq></td>
											<td class="taskStatus" nowrap="nowrap">{$vo.fail_order}</td>
											<td class="taskStatus" nowrap="nowrap">{:time_format($vo["create_time"],"Y-m-d")}</td>
											<td class="taskStatus" nowrap="nowrap">{:time_format($vo["apply_start"],"Y-m-d")}<br/>{:time_format($vo["apply_end"],"Y-m-d")}</td>
											<td class="taskStatus">{$vo.remark|htmlspecialchars|msubstr=###,0,40}</td>
											<td class="taskStatus" nowrap="nowrap">
												<!-- <a href="{:U('checkShopEdit?check_shop_id='.$vo['check_shop_id'])}"><i class="icon-edit"></i> 编辑</a> -->
												<a href="{:U('checkShopChangeStatus',array('id'=>$vo['check_shop_id'],'method'=>'deleteCheckShop'))}" class="ajax-get confirm"><i class="icon-remove"></i> 删除</a>
											</td>
										</tr>
									</volist>
								</tbody>
							</table>
							<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
						</form>
					<else/>
						<center>暂无内容</center>
					</notempty>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
$(function (){
	//新增跳转页面
	$('#add').click(function(){
		window.location.href="{:U('CheckOrder/checkShopAdd')}";
	});
});
//导航高亮
highlight_subnav("{:U('CheckOrder/checkShopList')}");
</script>
</block>